import service from '@/utils/request'

export const createExaCustomer = (data) => {
    return service({
        url: '/customer/add',
        method: 'post',
        data
    })
}


export const updateExaCustomer = (data) => {
    return service({
        url: '/customer/update',
        method: 'put',
        data
    })
}


export const deleteExaCustomer = (params) => {
    return service({
        url: `/customer/delete/${params}`,
        method: 'delete',
    })
}


export const getExaCustomer = (params) => {
    return service({
        url: '/customer/info',
        method: 'get',
        params
    })
}


export const getExaCustomerList = (params) => {
    return service({
        url: '/customer/page',
        method: 'get',
        params
    })
}

export const getCustomerList = () => {
    return service({
        url: '/customer/list',
        method: 'get'
    })
}
